Helpful Information
 
 
Category: Ruby Programming
ROR - Display value in <textarea>

Hi,

I'm returning queried DB values in a form for editing. I can't get Ruby to display the value in a <textarea>! The value displays fine in a table row, or in a text box, but the textarea doesn't work. Anyone know if there is something special that the textarea needs? (This query only returns one row BTW)Thanks!!


<% @edit.each do |cause| %>

<table border="0">
<tr>
<td nowrap align="right">PRIMARY(a):</td>
<td colspan="2"><textarea wrap name="cause_texta" value="<%= cause.cause_texta %>" rows="6" cols="70"></textarea>
</td>
</tr>
<% end %>

The text should go between the textarea tags, not in the value attribute.

OMG - now I KNOW I'm burned out on Ruby!! Sheesh, I've only been coding HTML for what - 6 years?? What a dumba$$ -- I need a vacation...

Thank you O mighty Penguin! ;)

~Snow










privacy (GDPR)